# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=geeqie
pkgver=1.7.3
pkgrel=0
pkgdesc="Gtk+ based image viewer and organiser"
url="http://www.geeqie.org/"
arch="all"
license="GPL-2.0-only"
options="!check"
makedepends="gtk+3.0-dev lcms2-dev exiv2-dev libtool doxygen
	lua5.1-dev graphviz-dev automake autoconf intltool"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/BestImageViewer/geeqie/releases/download/v$pkgver/geeqie-$pkgver.tar.xz
	geeqie-1.4-goodbye-changelog.patch
	use-default-cflags.patch
	use-sh.patch
	"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-lua
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5647422876dcd41ec369cc926783661e15f33c2794e073df98827b8fc030baf3ebf03587e42eef35caaddc3b315b74ee0f8c3a156422f72522ffbbb7ec0fd8d9  geeqie-1.7.3.tar.xz
c18740dd388d24b56c35c481a169f58e2710a5fbee6eae4792d7fb13209033581f893cd40b5af160be8f64326e6eea6abc2bf7363a063fedd17a0a999175834d  geeqie-1.4-goodbye-changelog.patch
0312d7bf895cfc7ab79b8aba98df7c42f4c6e898473b838fc1940118d02588b9ae3ebec35bd2add58542dfde72a7310e3326d6d5e7c837e3cd832123758099e6  use-default-cflags.patch
6f53acc29f757251a67bda035678a40f7d2a812ff29b494cd4c0c87a36b8a3e5e789da48c687f11d59929bf19320ecaeebb67a8dc54f14edafc2f6fb12f2ac8f  use-sh.patch
"
